//
//  UIImage+Image.h
//  XianYu
//
//  Created by li  bo on 16/5/28.
//  Copyright © 2016年 li  bo. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Image)

/**
 *  根据颜色生成一张图片
 */
+ (UIImage *)imageWithColor:(UIColor *)color;
-(UIImage *) imageCompressForWidth:(UIImage *)sourceImage targetValue:(CGFloat)defineValue;
+(UIImage*)imageWithWaterImage:(UIImage*)image waterTitle:(NSString*)title waterAttributes:(NSDictionary*)attributes;
+(UIImage*)imageWithCilpImage:(UIImage*)image borderWidth:(CGFloat)borderWidth borderColor:(UIColor*)color;
@end
